import {
	defineStore
} from 'pinia'
import {
	ref
} from 'vue'

// 定义 Store
export const useEnableToken = defineStore(
	'enableToken', {
		state: () => ({
			token: '',
		}),
		actions: {
			setEnableToken(value) {
				this.token = JSON.parse(value)
			},
			clearEnableToken() {
				this.token = null
			},
		}
	}

)